\hypertarget{pagerank_8cpp}{\section{example\-\_\-apps/pagerank.cpp File Reference}
\label{pagerank_8cpp}\index{example\-\_\-apps/pagerank.\-cpp@{example\-\_\-apps/pagerank.\-cpp}}
}
{\ttfamily \#include $<$string$>$}\\*
{\ttfamily \#include $<$fstream$>$}\\*
{\ttfamily \#include $<$cmath$>$}\\*
{\ttfamily \#include \char`\"{}graphchi\-\_\-basic\-\_\-includes.\-hpp\char`\"{}}\\*
{\ttfamily \#include \char`\"{}util/toplist.\-hpp\char`\"{}}\\*
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{struct_pagerank_program}{Pagerank\-Program}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\hypertarget{pagerank_8cpp_a4679d8ea8690999a6c6c7c0cb245c879}{\#define {\bfseries T\-H\-R\-E\-S\-H\-O\-L\-D}~1e-\/1}\label{pagerank_8cpp_a4679d8ea8690999a6c6c7c0cb245c879}

\item 
\hypertarget{pagerank_8cpp_a5e3939b7192acef3f437bb0edc1c63df}{\#define {\bfseries R\-A\-N\-D\-O\-M\-R\-E\-S\-E\-T\-P\-R\-O\-B}~0.\-15}\label{pagerank_8cpp_a5e3939b7192acef3f437bb0edc1c63df}

\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\hypertarget{pagerank_8cpp_a357c4eed6dd08b74c2a63472c0f10afa}{typedef float {\bfseries Vertex\-Data\-Type}}\label{pagerank_8cpp_a357c4eed6dd08b74c2a63472c0f10afa}

\item 
\hypertarget{pagerank_8cpp_af2381c28a1096b588ce381c1037d2264}{typedef float {\bfseries Edge\-Data\-Type}}\label{pagerank_8cpp_af2381c28a1096b588ce381c1037d2264}

\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{pagerank_8cpp_a217dbf8b442f20279ea00b898af96f52}{int {\bfseries main} (int argc, const char $\ast$$\ast$argv)}\label{pagerank_8cpp_a217dbf8b442f20279ea00b898af96f52}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Aapo Kyrola \href{mailto:akyrola@cs.cmu.edu}{\tt akyrola@cs.\-cmu.\-edu} 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
1.\-0
\end{DoxyVersion}
\hypertarget{toplist_8hpp_LICENSE}{}\subsection{L\-I\-C\-E\-N\-S\-E}\label{toplist_8hpp_LICENSE}
Copyright \mbox{[}2012\mbox{]} \mbox{[}Aapo Kyrola, Guy Blelloch, Carlos Guestrin / Carnegie Mellon University\mbox{]}

Licensed under the Apache License, Version 2.\-0 (the \char`\"{}\-License\char`\"{}); you may not use this file except in compliance with the License. You may obtain a copy of the License at

\href{http://www.apache.org/licenses/LICENSE-2.0}{\tt http\-://www.\-apache.\-org/licenses/\-L\-I\-C\-E\-N\-S\-E-\/2.\-0}

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \char`\"{}\-A\-S I\-S\char`\"{} B\-A\-S\-I\-S, W\-I\-T\-H\-O\-U\-T W\-A\-R\-R\-A\-N\-T\-I\-E\-S O\-R C\-O\-N\-D\-I\-T\-I\-O\-N\-S O\-F A\-N\-Y K\-I\-N\-D, either express or implied. See the License for the specific language governing permissions and limitations under the License.\hypertarget{toplist_8hpp_DESCRIPTION}{}\subsection{D\-E\-S\-C\-R\-I\-P\-T\-I\-O\-N}\label{toplist_8hpp_DESCRIPTION}
Simple pagerank implementation. Uses the basic vertex-\/based A\-P\-I for demonstration purposes. A faster implementation uses the functional A\-P\-I, \char`\"{}pagerank\-\_\-functional\char`\"{}. 